package com.xiaoyu.izf.repository;

import com.xiaoyu.izf.model.UserAddress;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface UserAddressDao extends JpaRepository<UserAddress,Integer>, JpaSpecificationExecutor<UserAddress> {
    public UserAddress findOneById(int id);

    public List<UserAddress> findAllByUid(int uid);
}
